/*
 * Buffer.h
 *
 *  Created on: 12.10.2011
 *      Author: artur
 */

#ifndef BUFFER_H_
#define BUFFER_H_

class Buffer {

	//int CountEOF;
	int pagesize;
	int count;
	int readCode;
	int openCode;
	int openCode1;
	char *buffer2;
	char *buffer1;
	char *outputBuffer;
	char *next;
	char *InputNext;
	char *base;
	char output;
	void loadPuffer1();
	void loadPuffer2();
	void writeFile();
public:
	Buffer(char *filename, char *output);
	~Buffer();
	void alloc();
	void ungetchar(int count);
	char getchar();
	void putChar(char *symbol);
	void lexemAcceped();
	void close();
};

#endif /* BUFFER_H_ */
